<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:71:"D:\phpStudy\WWW\ferr\public/../application/manage\view\index\index.html";i:1493799379;s:73:"D:\phpStudy\WWW\ferr\public/../application/manage\view\layout\header.html";i:1493803656;s:73:"D:\phpStudy\WWW\ferr\public/../application/manage\view\layout\footer.html";i:1492392708;}*/ ?>
<!DOCTYPE html>
<html lang="en-us">
	<head>
		<meta charset="utf-8">
		<!--<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">-->

		<title><?php echo $title; ?></title>
		<meta name="description" content="">
		<meta name="author" content="">

		<!-- Use the correct meta names below for your web application
			 Ref: http://davidbcalhoun.com/2010/viewport-metatag

		<meta name="HandheldFriendly" content="True">
		<meta name="MobileOptimized" content="320">-->

		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

		<!-- Basic Styles -->
		<link rel="stylesheet" type="text/css" media="screen" href="__CSS__/reset.css">
		<link rel="stylesheet" type="text/css" media="screen" href="__CSS__/bootstrap.min.css">
		<link rel="stylesheet" type="text/css" media="screen" href="__CSS__/font-awesome.min.css">

		<!-- SmartAdmin Styles : Please note (smartadmin-production.css) was created using LESS variables -->
		<link rel="stylesheet" type="text/css" media="screen" href="__CSS__/smartadmin-production.css">
		<link rel="stylesheet" type="text/css" media="screen" href="__CSS__/smartadmin-skins.css">

		<!-- SmartAdmin RTL Support is under construction
		<link rel="stylesheet" type="text/css" media="screen" href="__CSS__/smartadmin-rtl.css"> -->

		<!-- We recommend you use "your_style.css" to override SmartAdmin
		     specific styles this will also ensure you retrain your customization with each SmartAdmin update.
		<link rel="stylesheet" type="text/css" media="screen" href="__CSS__/your_style.css"> -->

		<!-- Demo purpose only: goes with demo.js, you can delete this css when designing your own WebApp -->
		<link rel="stylesheet" type="text/css" media="screen" href="__CSS__/demo.css">

		<!-- FAVICONS -->
		<link rel="shortcut icon" href="__IMG__/favicon/favicon.ico" type="image/x-icon">
		<link rel="icon" href="__IMG__/favicon/favicon.ico" type="image/x-icon">

		<!-- GOOGLE FONT -->
		<!--<link rel="stylesheet" href="http://fonts.useso.com/css?family=Open+Sans:400italic,700italic,300,400,700"> -->

		<!--mine-->
		<link rel="stylesheet" href="__CSS__/manage/modify.css">
		<script>
			if (!window.jQuery) {
				document.write('<script src="__JS__/libs/jquery-2.0.2.min.js"><\/script>');
			}
		</script>

		<!-- <script src="http://ajax.useso.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script> -->
		<script>
			if (!window.jQuery.ui) {
				document.write('<script src="__JS__/libs/jquery-ui-1.10.3.min.js"><\/script>');
			}
		</script>
		<script src="__JS__/vue.js"></script>
		<script src="__JS__/axios.min.js"></script>
	</head>
	<body class="">
		<!-- possible classes: minified, fixed-ribbon, fixed-header, fixed-width-->

		<!-- HEADER -->
		<header id="header">
			<div id="logo-group">

				<!-- PLACE YOUR LOGO HERE -->
				<!-- <span id="logo"> <img src="__IMG__/logo.png" alt="SmartAdmin"> </span> -->
				<!-- END LOGO PLACEHOLDER -->

				<!-- Note: The activity badge color changes when clicked and resets the number to 0
				Suggestion: You may want to set a flag when this happens to tick off all checked messages / notifications -->
				<!-- <span id="activity" class="activity-dropdown"> <i class="fa fa-user"></i> <b class="badge"> 21 </b> </span> -->

				<!-- AJAX-DROPDOWN : control this dropdown height, look and feel from the LESS variable file -->
				<!-- <div class="ajax-dropdown"> -->

					<!-- the ID links are fetched via AJAX to the ajax container "ajax-notifications" -->
					<!-- <div class="btn-group btn-group-justified" data-toggle="buttons">
						<label class="btn btn-default">
							<input type="radio" name="activity" id="ajax/notify/mail.html">
							Msgs (14) </label>
						<label class="btn btn-default">
							<input type="radio" name="activity" id="ajax/notify/notifications.html">
							notify (3) </label>
						<label class="btn btn-default">
							<input type="radio" name="activity" id="ajax/notify/tasks.html">
							Tasks (4) </label>
					</div> -->

					<!-- notification content -->
					<!-- <div class="ajax-notifications custom-scroll">

						<div class="alert alert-transparent">
							<h4>Click a button to show messages here</h4>
							This blank page message helps protect your privacy, or you can show the first message here automatically.
						</div>

						<i class="fa fa-lock fa-4x fa-border"></i>

					</div> -->
					<!-- end notification content -->

					<!-- footer: refresh area -->
					<!-- <span> Last updated on: 12/12/2013 9:43AM -->
						<!-- <button type="button" data-loading-text="<i class='fa fa-refresh fa-spin'></i> Loading..." class="btn btn-xs btn-default pull-right">
							<i class="fa fa-refresh"></i>
						</button> </span> -->
					<!-- end footer -->

				<!-- </div> -->
				<!-- END AJAX-DROPDOWN -->
			</div>


			<!-- end projects dropdown -->

			<!-- pulled right: nav area -->
			<div class="pull-right">

				<!-- collapse menu button -->
				<div id="hide-menu" class="btn-header pull-right">
					<span> <a href="javascript:void(0);" title="Collapse Menu"><i class="fa fa-reorder"></i></a> </span>
				</div>
				<!-- end collapse menu -->

				<!-- logout button -->
				<div id="logout" class="btn-header transparent pull-right">
					<span> <a href="javascript:void(0);" title="Sign Out"><i class="fa fa-sign-out"></i></a> </span>
				</div>
				<!-- end logout button -->

				<!-- search mobile button (this is hidden till mobile view port) -->
				<div id="search-mobile" class="btn-header transparent pull-right">
					<span> <a href="javascript:void(0)" title="Search"><i class="fa fa-search"></i></a> </span>
				</div>
				<!-- end search mobile button -->

			</div>
			<!-- end pulled right: nav area -->

		</header>
		<!-- END HEADER -->

		<!-- Left panel : Navigation area -->
		<!-- Note: This width of the aside area can be adjusted through LESS variables -->
		<aside id="left-panel">

			<!-- User info -->
			<div class="login-info">
				<span> <!-- User image size is adjusted inside CSS, it should stay as it -->

					<a href="javascript:void(0);" id="show-shortcut">
						<img src="__IMG__/avatars/sunny.png" alt="me" class="online" />
						<span>
							<?php echo session('user.name'); ?>
						</span>
						<!-- <i class="fa fa-angle-down"></i> -->
					</a>

				</span>
			</div>
			<!-- end user info -->

			<!-- NAVIGATION : This navigation is also responsive

			To make this navigation dynamic please make sure to link the node
			(the reference to the nav > ul) after page load. Or the navigation
			will not initialize.
			-->
			<nav>
				<!-- NOTE: Notice the gaps after each icon usage <i></i>..
				Please note that these links work a bit different than
				traditional hre="" links. See documentation for details.
				-->
				<ul>
					<?php if(is_array($menu) || $menu instanceof \think\Collection || $menu instanceof \think\Paginator): if( count($menu)==0 ) : echo "" ;else: foreach($menu as $key=>$c): ?>
						<li <?php if($controller == explode('/',$c['url'])[0]): ?> class="active open" <?php endif; ?> >
							<a href="javascript:;"><i class="<?php echo $c['icon']; ?>"></i> <span class="menu-item-parent"><?php echo $c['title']; ?></span></a>
							<?php if($c['child']): if($controller == explode('/',$c['url'])[0]): ?>
									<ul style="display: block;">
								<?php else: ?>
									<ul style="display: none;">
								<?php endif; if(is_array($c['child']) || $c['child'] instanceof \think\Collection || $c['child'] instanceof \think\Paginator): if( count($c['child'])==0 ) : echo "" ;else: foreach($c['child'] as $key=>$a): ?>
										<li <?php if($controller . '/' . $action == $a['url']): ?>class="active"<?php endif; ?>>
											<a href="<?php echo url($a['url']); ?>"><?php echo $a['title']; ?></a>
										</li>
									<?php endforeach; endif; else: echo "" ;endif; ?>
								</ul>
							<?php endif; ?>
						</li>
					<?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
			</nav>
			<span class="minifyme"> <i class="fa fa-arrow-circle-left hit"></i> </span>

		</aside>
		<!-- END NAVIGATION -->

		<!-- MAIN PANEL -->
		<div id="main" role="main">

			<!-- RIBBON -->
			<div id="ribbon">

				<span class="ribbon-button-alignment"> <span id="refresh" class="btn btn-ribbon"   rel="tooltip" data-placement="bottom" data-original-title="" data-html="true"><i class="fa fa-refresh"></i></span> </span>

				<!-- breadcrumb -->
				<!-- <ol class="breadcrumb">
					<li>
						刷新
					</li>
				</ol> -->
				<!-- end breadcrumb -->

				<!-- You can also add more buttons to the
				ribbon for further usability

				Example below:

				<span class="ribbon-button-alignment pull-right">
				<span id="search" class="btn btn-ribbon hidden-xs" data-title="search"><i class="fa-grid"></i> Change Grid</span>
				<span id="add" class="btn btn-ribbon hidden-xs" data-title="add"><i class="fa-plus"></i> Add</span>
				<span id="search" class="btn btn-ribbon" data-title="search"><i class="fa-search"></i> <span class="hidden-mobile">Search</span></span>
				</span> -->

			</div>

			<!-- END RIBBON -->
			<!-- MAIN CONTENT -->


	
<div __IMG__/nt">

	<!-- Bread crumb is created dynamically -->
	<!-- row -->
	<div class="row">
	
		<!-- col -->
		<div class="col-xs-12 col-sm-7 col-md-7 col-lg-4">
			<h1 class="page-title txt-color-blueDark"><!-- PAGE HEADER --></h1>
		</div>
		<!-- end col -->
	
	</div>
	<!-- end row -->
	
	<!-- row -->
	
	<div class="row">
	
		<div class="col-sm-12">
	
	
				<div class="well well-sm">
	
					<div class="row">
	
						<div class="col-sm-12 col-md-12 col-lg-6">
							<div class="well well-light well-sm no-margin no-padding">
	
								<div class="row">
	
									<div class="col-sm-12">
	
										<div class="row">
	
											<div class="col-sm-3 profile-pic">
												<img src="<?php echo $data['photo']; ?>">
												<div class="padding-10">
													<h4 class="font-md">
													<?php if($data['note']['sex'] == 1): ?>
															<strong class="txt-color-blue">男</strong>
														<?php else: ?>
															<strong class="txt-color-pinkDark">女</strong>
														<?php endif; ?>
													<br>
													<small><?php echo date('Y-m-d',$data['t1']); ?></small></h4>
												</div>
											</div>
											<div class="col-sm-6">
												<h1><?php echo $data['name']; ?></span>
												<br>
												<small><?php echo $data['role']; ?></small></h1>
	
												<ul class="list-unstyled">
													<li>
														<p class="text-muted">
															<i class="fa fa-phone"></i>&nbsp;&nbsp;<span class="txt-color-blue"><?php echo $data['phone']; ?></span>
														</p>
													</li>
													<li>
														<p class="text-muted">
															<i class="fa fa-envelope"></i>&nbsp;&nbsp;<span class="txt-color-blue"><?php echo $data['email']; ?></span>
														</p>
													</li>
													<li>
														<p class="text-muted">
															<i class="fa fa-key"></i>&nbsp;&nbsp;(<span class="txt-color-orangeDark">工牌</span>)  <span class="txt-color-darken"><?php echo $data['note']['wcard']; ?></span>
														</p>
													</li>
													<li>
														<p class="text-muted">
															<i class="fa fa-credit-card"></i>&nbsp;&nbsp;(<span class="txt-color-orangeDark">身份证</span>)  <span class="txt-color-darken"><?php echo $data['note']['idcode']; ?></span>
														</p>
													</li>
													<li>
														<p class="text-muted">
															<i class="fa fa-home"></i>&nbsp;&nbsp;<span class="txt-color-darken"><?php echo $data['addres']; ?></span>
														</p>
													</li>
												</ul>
										
	
											</div>
											<div class="col-sm-3">
												<h1><small>证件照</small></h1>
												<ul class="list-inline friends-list" id="certificate">
													<?php if(is_array($data['note']) || $data['note'] instanceof \think\Collection || $data['note'] instanceof \think\Paginator): if( count($data['note'])==0 ) : echo "" ;else: foreach($data['note'] as $k=>$v): if(in_array(($k), explode(',',"id_just,id_back,contract_1,contract_2,contract_3,cert_4,cert_d,cert_z,cert_l,cert_2,cert_3,license_1,license_2"))): ?>
															<li style="cursor: pointer;"><img src="<?php echo $v; ?>" alt="<?php switch($k): case "id_just": ?>身份证正面<?php break; case "id_back": ?>身份证反面<?php break; case "contract_1": ?>合作伙伴合约<?php break; case "contract_2": ?>代理商合约<?php break; case "contract_3": ?>外包工程商合约<?php break; case "cert_4": ?>外部工程师证书<?php break; case "cert_d": ?>单体工程师证书<?php break; case "cert_z": ?>中央工程师证书<?php break; case "cert_l": ?>冷库工程师证书<?php break; case "cert_2": ?>技术人员证书<?php break; case "cert_3": ?>维保人员证书<?php break; case "license_1": ?>外包工程商营业执照<?php break; case "license_2": ?>代理商营业执照<?php break; endswitch; ?>"></li>
														<?php endif; endforeach; endif; else: echo "" ;endif; ?>
												</ul>
	
												<!-- <h1><small>审核资源人</small></h1>
												<ul class="list-inline friends-list">
													<li><img src="__IMG__/avatars/male.png" alt="friend-1">
													</li>
													<li><img src="__IMG__/avatars/female.png" alt="friend-2">
													</li>
													<li><img src="__IMG__/avatars/female.png" alt="friend-3">
													</li>
												</ul> -->
	
											</div>
	
										</div>
	
									</div>
	
								</div>
	
								<div class="row">
	
									<div class="col-sm-12">
	
										<hr>
	
										<div class="padding-10">
	
											<ul class="nav nav-tabs tabs-pull-right">
												<li class="active">
													<a href="#a1" data-toggle="tab">资源人审核</a>
												</li>
												<li>
													<a href="#a2" data-toggle="tab">我的资源人</a>
												</li>
												<li class="pull-left">
													<span class="margin-top-10 display-inline"><i class="fa fa-rss text-success"></i> 资源人</span>
												</li>
											</ul>
	
											<div class="tab-content padding-top-10">
												<div class="tab-pane fade in active" id="a1">
													<div class="row">
														<div class="widget-body smart-form">

															<ul class="todo ui-sortable">
																<?php if(is_array($mans) || $mans instanceof \think\Collection || $mans instanceof \think\Paginator): if( count($mans)==0 ) : echo "" ;else: foreach($mans as $k=>$v): if($v['auth'] == '0'): ?>
																		<li>
																			<strong><?php echo $k; ?></strong>
																			<p class="col-sm-12" data-uid="<?php echo $v['uid']; ?>" data-rid="<?php echo $v['rid']; ?>" data-tel="<?php echo $v['tel']; ?>" data-ctime="<?php echo $v['ctime']; ?>">
																				<strong><?php echo $v['name']; ?></strong> - 申请成为你的资源人 
																				<small class="txt-color-pink">(<?php if($v['rid'] == '51'): ?>匿名<?php else: ?>公开<?php endif; ?>)</small> 
																				<a href="javascript:void(0);" class="font-xs pass">通过</a> 
																				<a href="javascript:void(0);" class="font-xs refuse">拒绝</a> 
																				<span class="date"><?php echo date('Y-m-d H:i:s',$v['ctime']); ?></span>
																			</p>
																		</li>
																	<?php endif; endforeach; endif; else: echo "" ;endif; ?>
															</ul>

														</div>
													</div>
												</div>

												<div class="tab-pane fade" id="a2">
	
													<?php if(is_array($mans) || $mans instanceof \think\Collection || $mans instanceof \think\Paginator): $i = 0; $__LIST__ = $mans;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;if($v['auth'] == '1'): ?>
															<div class="user">
																<?php if($v['photo']): ?>
																	<img src="<?php echo $v['photo']; ?>">
																<?php else: ?>
																	<img src="__IMG__/avatars/female.png">
																<?php endif; ?>
																<a href="javascript:void(0);"><?php echo $v['name']; ?></a>
																<div class="email">
																	<?php echo $v['phone']; ?>
																</div>
															</div>
														<?php endif; endforeach; endif; else: echo "" ;endif; ?>
													
	
												</div><!-- end tab -->
											</div>
	
										</div>
	
									</div>
	
								</div>
								<!-- end row -->
	
							</div>
	
						</div>
					</div>
	
				</div>
	
	
		</div>
	
	</div>
	
	<!-- end row -->

</div>

<script src="__JS__/layer/layer.js"></script>
<script>
	layer.photos({
		photos: '#certificate',
	    anim: 5 //0-6的选择，指定弹出图片动画类型，默认随机
	});

	$('.font-xs').click(function () {
		var obj = $(this).parent(),
			auth = $(this).attr('class').indexOf('pass') !== -1 ? 1 : 2;

		var data = {
			auth : auth,
			uid : obj.attr('data-uid'),
			rid : obj.attr('data-rid'),
			tel : obj.attr('data-tel'),
			ctime : obj.attr('data-ctime')
		};

		var prompt = auth === 1 ? '确认通过？' : '确认拒绝?';

		layer.confirm(prompt, {
  			btn: ['是','否'] //按钮
		}, function(){
			$.post("<?php echo url('User/review_resource_man'); ?>", data, function (res) {
				if (res.status) {
					layer.msg(res.message, {icon: 1});
					obj.parents('li').fadeOut('slow');
				} else {
					layer.msg(res.message, {icon: 2});
				}
			}, 'json');
			
		}, function(){
  			return;
		});

	});

</script>
			

		</div>
		<!-- END MAIN PANEL -->

		<!-- SHORTCUT AREA : With large tiles (activated via clicking user name tag)
		Note: These tiles are completely responsive,
		you can add as many as you like
		-->
		<div id="shortcut">
			<ul>
				<li>
					<a href="#inbox.html" class="jarvismetro-tile big-cubes bg-color-blue"> <span class="iconbox"> <i class="fa fa-envelope fa-4x"></i> <span>Mail <span class="label pull-right bg-color-darken">14</span></span> </span> </a>
				</li>
				<li>
					<a href="#calendar.html" class="jarvismetro-tile big-cubes bg-color-orangeDark"> <span class="iconbox"> <i class="fa fa-calendar fa-4x"></i> <span>Calendar</span> </span> </a>
				</li>
				<li>
					<a href="#gmap-xml.html" class="jarvismetro-tile big-cubes bg-color-purple"> <span class="iconbox"> <i class="fa fa-map-marker fa-4x"></i> <span>Maps</span> </span> </a>
				</li>
				<li>
					<a href="#invoice.html" class="jarvismetro-tile big-cubes bg-color-blueDark"> <span class="iconbox"> <i class="fa fa-book fa-4x"></i> <span>Invoice <span class="label pull-right bg-color-darken">99</span></span> </span> </a>
				</li>
				<li>
					<a href="#gallery.html" class="jarvismetro-tile big-cubes bg-color-greenLight"> <span class="iconbox"> <i class="fa fa-picture-o fa-4x"></i> <span>Gallery </span> </span> </a>
				</li>
				<li>
					<a href="javascript:void(0);" class="jarvismetro-tile big-cubes selected bg-color-pinkDark"> <span class="iconbox"> <i class="fa fa-user fa-4x"></i> <span>My Profile </span> </span> </a>
				</li>
			</ul>
		</div>
		<!-- END SHORTCUT AREA -->

		<!--================================================== -->

		<!-- PACE LOADER - turn this on if you want ajax loading to show (caution: uses lots of memory on iDevices)-->
		<script data-pace-options='{ "restartOnRequestAfter": true }' src="__JS__/plugin/pace/pace.min.js"></script>

		<!-- Link to Google CDN's jQuery + jQueryUI; fall back to local -->
		<!-- <script src="http://ajax.useso.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script> -->
		

		<!-- JS TOUCH : include this plugin for mobile drag / drop touch events
		<script src="__JS__/plugin/jquery-touch/jquery.ui.touch-punch.min.js"></script> -->

		<!-- BOOTSTRAP JS -->
		<script src="__JS__/bootstrap/bootstrap.min.js"></script>

		<!-- CUSTOM NOTIFICATION -->
		<script src="__JS__/notification/SmartNotification.min.js"></script>

		<!-- JARVIS WIDGETS -->
		<script src="__JS__/smartwidgets/jarvis.widget.min.js" id="addScript"></script>

		<!-- EASY PIE CHARTS -->
		<script src="__JS__/plugin/easy-pie-chart/jquery.easy-pie-chart.min.js"></script>

		<!-- SPARKLINES -->
		<script src="__JS__/plugin/sparkline/jquery.sparkline.min.js"></script>

		<!-- JQUERY VALIDATE -->
		<script src="__JS__/plugin/jquery-validate/jquery.validate.min.js"></script>

		<!-- JQUERY MASKED INPUT -->
		<script src="__JS__/plugin/masked-input/jquery.maskedinput.min.js"></script>

		<!-- JQUERY UI + Bootstrap Slider -->
		<script src="__JS__/plugin/bootstrap-slider/bootstrap-slider.min.js"></script>

		<!-- browser msie issue fix -->
		<script src="__JS__/plugin/msie-fix/jquery.mb.browser.min.js"></script>

		<!-- FastClick: For mobile devices -->
		<script src="__JS__/plugin/fastclick/fastclick.js"></script>

		<script src="__JS__/plugin/jquery-nestable/jquery.nestable.js"></script>

		<!--[if IE 7]>

		<h1>Your browser is out of date, please update your browser by going to www.microsoft.com/download</h1>

		<![endif]-->

		<!-- Demo purpose only -->
		<!-- <script src="__JS__/demo.js"></script> -->

		<!-- MAIN APP JS FILE -->
		<script src="__JS__/app.js"></script>

		<!-- VUE -->
<!-- 		<script src="__JS__/vue.js"></script>
		<script src="__JS__/axios.min.js"></script> -->



		<script type="text/javascript">

		// DO NOT REMOVE : GLOBAL FUNCTIONS!

		$(document).ready(function() {

			pageSetUp();

		})

		</script>

	</body>

</html>
